<template>
    <a-layout id="my-container">
        <!-- 左侧 -->
        <a-layout-sider :collapsed="collapsed" :trigger="null" collapsible>
            <Menu :collapsed="collapsed" />
        </a-layout-sider>

        <!-- 右侧 -->
        <a-layout>
            <a-layout-header style="background: #fff; padding: 0;">
                <Header v-model:collapsed="collapsed" />
            </a-layout-header>
            <a-layout-content :style="{ margin: '24px 16px', padding: '24px', background: '#fff', minHeight: '280px' }">
                <router-view />
            </a-layout-content>
        </a-layout>

    </a-layout>
</template>
<script lang="ts" setup>
import Menu from './components/Menu'
import Header from './components/Header'

const collapsed = ref(false)
</script>

<style>
#my-container {
    height: 100vh;
}

#my-container .trigger {
    font-size: 18px;
    line-height: 64px;
    padding: 0 24px;
    cursor: pointer;
    transition: color 0.3s;
}

#my-container .trigger:hover {
    color: #1890ff;
}

.site-layout .site-layout-background {
    background: #fff;
}
</style>
  